﻿using Microsoft.Extensions.DependencyInjection;
using YiSha.Business.OrganizationManage;
using YiSha.Business.SystemManage;

namespace YiSha.Business;

public static class ServiceCollectionExtension
{
    public static IServiceCollection AddBusiness(this IServiceCollection services)
    {
        // 注册业务层
        services.AddScoped<UserBLL>();
        services.AddScoped<DepartmentBLL>();
        services.AddScoped<PositionBLL>();
        services.AddScoped<NewsBLL>();
        services.AddScoped<AreaBLL>();
        services.AddScoped<RoleBLL>();
        services.AddScoped<AutoJobBLL>();
        services.AddScoped<AutoJobLogBLL>();
        services.AddScoped<DatabaseTableBLL>();
        services.AddScoped<DataDictBLL>();
        services.AddScoped<DataDictDetailBLL>();
        services.AddScoped<LogApiBLL>();
        services.AddScoped<LogLoginBLL>();
        services.AddScoped<LogOperateBLL>();
        services.AddScoped<MenuBLL>();
        services.AddScoped<MenuAuthorizeBLL>();

        return services;
    }
}